package io.gitee.tziye.core.msg;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

@Data
public class RenaiMsg {

    private Long id;
    private String topic;
    private int pt;
    private String k;
    private String msg;
    private Date createTime;

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = Date.from(createTime.atZone(ZoneId.systemDefault()).toInstant());
    }
}
